import sys

if len(sys.argv) > 1:
	fname = sys.argv[1]
else:
	print("Give a Name")
	exit(0)

threads = [4 6 8 12 14 16 20 24 28]
granu = ['64','128','256','512','1KB','2048',
'4KB','8KB','16KB','32KB','64KB','128KB']
bandwidth = list()

fin = open(fname, 'r')
for i in range(len(threads)) :
	tmp = list()
	for j in range(len(granu)):
		line = fin.readline()
		t, g, bw= line.split()
		tmp.append(int(bw.strip("MB"))/1000)
	bandwidth.append(tmp)
fin.close()

for i in range(len(granu)):
	print(granu[i], end = ' ')
	for j in range(len(threads)):
		print(bandwidth[j][i], end = ' ')
	print()